// Raf Lempens & Bjorn Schobben
#include "HitAbilityVisitor.h"
#include <stdio.h>


HitAbilityVisitor::HitAbilityVisitor(): found(false), hittableInterface(0)
{
}

HitAbilityVisitor::~HitAbilityVisitor()
{
}

void HitAbilityVisitor::Visit(HitAbility& ability)
{
	found = true;
	hittableInterface = ability.HittableInterface();
}

bool HitAbilityVisitor::FoundAbility() const
{
	return found;
}

Hittable* HitAbilityVisitor::HittableInterface() const
{
	return hittableInterface;
}

void HitAbilityVisitor::Clear()
{
	found = false;
	hittableInterface = 0;
}

